package com.example.SecondStore.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Data
@Component
@ConfigurationProperties(prefix = "aliconfig")
public class AliConfig {
    private String id;
    private String secret;
    private String endpoint;
    private String bucket;



    @PostConstruct
    public void test() {

        System.out.println("hello");

    }

}
